CVE-2025-3047
Path Traversal in AWS SAM CLI allows file copy to build container
Description
When running the AWS Serverless Application Model Command Line Interface (SAM CLI) build process with Docker and symlinks are included in the build files, the container environment allows a user to access privileged files on the host by leveraging the elevated permissions granted to the tool. A user could leverage the elevated permissions to access restricted files via symlinks and copy them to a more permissive location on the container. Users should upgrade to v1.133.0 or newer and ensure any forked or derivative code is patched to incorporate the new fixes.
INFO
Published Date :
March 31, 2025, 4:15 p.m.
Last Modified :
April 1, 2025, 8:26 p.m.
Remotely Exploit :
Yes !
Source :
ff89ba41-3aa1-4d27-914a-91399e9639e5
Affected Products
The following products are affected by CVE-2025-3047
vulnerability.
Even if cvefeed.io
is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
No affected product recoded yet
CVSS Scores
Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
---|---|---|---|---|---|---|
CVSS 3.1 | MEDIUM | ff89ba41-3aa1-4d27-914a-91399e9639e5 | ||||
CVSS 4.0 | MEDIUM | ff89ba41-3aa1-4d27-914a-91399e9639e5 |
Solution
- Upgrade AWS SAM CLI to version 1.133.0 or later.
- Patch any forked or derivative code.
Public PoC/Exploit Available at Github
CVE-2025-3047 has a 3 public
PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-3047
.
URL | Resource |
---|---|
https://aws.amazon.com/security/security-bulletins/AWS-2025-008/ | |
https://github.com/aws/aws-sam-cli/security/advisories/GHSA-px37-jpqx-97q9 |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-3047
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-3047
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Issue with AWS SAM CLI (CVE-2025-3047, CVE-2025-3048)
cve-2025-3047 cve-2025-3048
None
HTML Python Shell
📡 PoC auto collect from GitHub. ⚠️ Be careful Malware.
security cve exploit poc vulnerability
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-3047
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-3047
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by ff89ba41-3aa1-4d27-914a-91399e9639e5
Mar. 31, 2025
Action Type Old Value New Value Added Reference https://github.com/aws/aws-sam-cli/security/advisories/GHSA-px37-jpqx-97q9 -
New CVE Received by ff89ba41-3aa1-4d27-914a-91399e9639e5
Mar. 31, 2025
Action Type Old Value New Value Added Description When running the AWS Serverless Application Model Command Line Interface (SAM CLI) build process with Docker and symlinks are included in the build files, the container environment allows a user to access privileged files on the host by leveraging the elevated permissions granted to the tool. A user could leverage the elevated permissions to access restricted files via symlinks and copy them to a more permissive location on the container. Users should upgrade to v1.133.0 or newer and ensure any forked or derivative code is patched to incorporate the new fixes. Added CVSS V4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Added CVSS V3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N Added CWE CWE-22 Added CWE CWE-497 Added Reference https://aws.amazon.com/security/security-bulletins/AWS-2025-008/